package com.lxk.dao;

import com.lxk.pojo.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author JohnSoybean
 * @since 2020-07-14
 */
public interface UsersMapper extends BaseMapper<Users> {

    /**
     * 扣银币
     * @param userId
     * @param number
     */
    Integer decrCoins(@Param("userId") Long userId, @Param("number") Integer number);

}
